package com.example.neteasecloudmusic_kotlin.ui.utils

import android.content.Context
import androidx.recyclerview.widget.LinearLayoutManager

class ScrollLinearLayoutManager(context: Context) : LinearLayoutManager(context) {

    private var mCanVerticalScroll: Boolean = true

    override fun canScrollVertically(): Boolean {
        return if (!mCanVerticalScroll) false
        else super.canScrollVertically()
    }

    fun setmCanVerticalScroll(boolean: Boolean) {
        mCanVerticalScroll = boolean
    }

}